package com.lesso.yjy.sunflower.domain.repository;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.yjy.sunflower.model.Employee;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeDTO;
import com.lesso.yjy.sunflower.pojo.dto.EmployeeQueryDTO;
import com.lesso.yjy.sunflower.pojo.vo.EmployeeVO;

public interface EmployeeRepository {
    Long save(Employee employee);

    Page<EmployeeVO> getPageList(EmployeeQueryDTO dto);

    Page<EmployeeVO> getCustomPageList(EmployeeQueryDTO dto);

    void removeById(Long id);

    void updateById(EmployeeDTO dto);

    EmployeeVO getById(Long id);
}
